package com.javatwo;

import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
       /*
        while ():先判断后执行-->不能明确循环次数
        do{
        }while ():先执行后判断-->不能明确循环次数
        for ():先判断后执行-->明确循环次数
       */
        boolean isflag=false;
        int count=0;
        System.out.println("请选择您需要的菜的编号：");
        System.out.println("1:红烧肉");
        System.out.println("2:炒青菜");
        System.out.println("3:西红柿炒鸡蛋");
        System.out.println("4:佛跳墙");
        int i = scanner.nextInt();
        while (isflag){
            System.out.println("是否继续点餐");
            //请输入是或否
            String next = scanner.next();
            if(next.equals("是")){
                System.out.println("请选择您需要的菜的编号：");
                int i1 = scanner.nextInt();
            }else {
                isflag=false;
            }
        }
    }
}
